#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include <QMainWindow>
#include"Login.h"
#include"RemoteCtlWidget.h"
#include"Client/RemoteClient.h"
#include"Domain/ClientMsg/LoginMsg.pb.h"
#include"ShowFrameOpenGLWidget.h"
#include <memory>
#include<QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT



public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void initInerFace();

public:
    int connectSrv(shared_ptr<ServerMsg::LoginMsg> LoginMsgPtr);

private slots:
    void on_Load_clicked();
    void on_Connect_clicked();

public slots:
    void Logsucess(string code);
    void RemoteCtl(int status);


 public:
    Ui::MainWindow *ui;
    Login* login;
    RemoteClient* remoteCli;
    RemoteCtlWidget* remoteCtlWidget;
};
#endif // MAINWINDOW_H
